class Request {
  //静态属性，所有对象共用的属性，只能把类当成对象来使用
  static host = "https://houdunren.com";
  name = "hdcms";
  api(url) {
    return Request.host + `/${url}`;
  }
}
console.log(Request);
let obj = new Request();
obj.name = "https://www.baidu.com";
console.log(obj);
console.log(obj.api("article"));
console.log(obj.host);

let obj2 = new Request();
console.log(obj2);
// console.dir(Request);
